import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<HomeWorkState> buildReducer() {
  return asReducer(
    <Object, Reducer<HomeWorkState>>{
      HomeWorkAction.action: _onAction,
      HomeWorkAction.onupdateHomework:_onupdateHomework,
    },
  );
}

HomeWorkState _onAction(HomeWorkState state, Action action) {
  final HomeWorkState newState = state.clone();
  return newState;
}

HomeWorkState _onupdateHomework(HomeWorkState state, Action action) {
  final HomeWorkState newState = state.clone();
  return newState;
}
